package com.atguigu.springcloud.alibaba.dao;

import com.atguigu.springcloud.entities.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderDao
{
    /**
         * @Author _HeiShuai
         * @Description //新建订单
         * @Date 10:29 2023/1/12
         * @Param
         * @return
    **/
    void create(Order order);

    /**
         * @Author _HeiShuai
         * @Description //修改订单状态，从零改为1
         * @Date 10:30 2023/1/12
         * @Param
         * @return
    **/
    void update(@Param("userId") Long userId,@Param("status") Integer status);
}
